package com.tinshow.dao.article;

import com.tinshow.model.article.Article;
import com.tinshow.model.article.vo.ArticleVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleMapper {

//    @Select("select * from article limit 12")
    List<ArticleVo> getArticleForIndex();

    List<ArticleVo> getArticleAndUser(ArticleVo articleVo);

    int deleteByPrimaryKey(Integer articelId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articelId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);
}